import  time
from timeit import timeit

from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By

driver = webdriver.Chrome(executable_path='Chromedriver.exe')
driver.get("http://121.43.169.97:8848/pageA.html")

# 设置隐式等待
driver.implicitly_wait(10)

# 需求：打开注册A页面，完成以下操作
# 1).使用隐式等待定位用户名输入框，如果元素存在，就输入admin
driver.find_element_by_css_selector("#userA").send_keys("admin")


